/*jslint browser: true, devel: true, bitwise: true, white: true, plusplus: true */
/*global $:true, define:true */

/**
 * @module Core
 */

define(function() {
"use strict";

/** 
 * @class ViewManager
 * @constructor
 */
var ViewManager = function(viewsPath, loadingScreen) {
	var Context = this;
	
	this.Current = null;
	this.ViewsPath = viewsPath;
	this.LoadingScreen = loadingScreen;
	
	this.loadCallback = function(view) {
		if (Current !== null) {
			Current.dispose();
		}
		Current = new view(this.LoadingScreen);
	}
};

ViewManager.prototype = {
	constructor: ViewManager,
	
	change: function(viewName) {
		require(viewName)
	},
	
};

return ViewManager;
});
